<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="author" content="lijinbo" />
    <title>248-分时函数的封装-浏览器空闲时</title>
  </head>

  <body>
    <div class="box">
      <p>向页面插入 10万个 dom ；要求插入时页面不卡顿</p>
      <p>
        参考文章：
        <a href="https://www.douyin.com/video/7352483538643553588" target="_blank">分时函数的封装</a>
      </p>
      <button id="btn1">直接插入</button>
      <hr />
      <button id="btn2">分时插入</button>
    </div>
    <script type="module" src="./248-main.js"></script>
  </body>
</html>
